package com.objection.lambdaSentence;

public class Executor {
    private Action actionFunc;
    public Executor(Action actionFunc) {
        this.actionFunc = actionFunc;
    }

    public void run(boolean flag) {
        if(flag) {
            actionFunc.run();
        }
    }
}
